<template>
	<div>
		<admin-header></admin-header>
		<add-category @flash="flashTable()"></add-category>
		<c-table ref="table"></c-table>
	</div>
</template>

<script>
	import AdminHeader from '../header/index.vue'
	import CTable from './components/ctable.vue'
	import AddCategory from './components/add_category.vue'
	export default{
		components: {
			AdminHeader,
			CTable,
			AddCategory
		},
    methods: {
      flashTable() {
        this.$refs.table.getTableData()
      }
    },
	}
</script>

<style>
</style>
